﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Person1
    {
        public string name;
        public string introduce;
        public int attack;
        public int defense;
        public int speed;
        public string aaname;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Introduce
        {
            get { return this.introduce; }
            set { this.introduce = value; }
        }
        public int Attack
        {
            get { return this.attack; }
            set { this.attack = value; }
        }
        public int Defense
        {
            get { return this.defense; }
            set { this.defense = value; }
        }
        public int Speed
        {
            get { return this.speed; }
            set { this.speed = value; }
        }
        public string AAname
        {
            get { return this.aaname; }
            set { this.aaname = value; }
        }
        public Person1(string name, string jieshao, int gongji, int fangyu, int sudu, string nikename)
        {
            this.name = name;
            this.introduce = jieshao;
            this.attack = gongji;
            this.defense = fangyu;
            this.speed = sudu;
            this.aaname = nikename;
        }

        public void show()
        {
            Console.WriteLine("英雄名称{0}，昵称{1}，英雄介绍{2}，攻击{3}，防御{4}，速度{5}", this.name, this.nikename, this.jieshao, this.gongji, this.fangyu, this.sudu);
        }

    }
}